//
//  ComfirmOrderNoSeatViewController.h
//  OrderSeat
//
//  Created by 王威 on 13-12-22.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AlertWindowView.h"

@class ComfirmOrderNoSeatDataSource;
@interface ComfirmOrderNoSeatViewController : BaseViewController<UITextFieldDelegate,UIGestureRecognizerDelegate,AlertWindowViewDelegate>

@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UIView *headView;
@property (strong, nonatomic) IBOutlet UIView *phoneView;
@property (strong, nonatomic) IBOutlet UIView *totalView;

@property (strong, nonatomic) IBOutlet UIButton *btnLunch;
@property (strong, nonatomic) IBOutlet UIButton *btnDinner;
@property (strong, nonatomic) IBOutlet UIButton *btnSubmit;

@property (strong, nonatomic) IBOutlet UITextField *dateTF;
@property (strong, nonatomic) IBOutlet UITextField *numberTF;
@property (strong, nonatomic) IBOutlet UITextField *otherPhoneTF;
@property (strong, nonatomic) IBOutlet UIButton *doneBtn;

@property (strong, nonatomic) IBOutlet UIView *doneBar;
@property (strong, nonatomic) IBOutlet UIDatePicker *datePicker;

@property (strong, nonatomic) IBOutlet UIView *otherView;

@property (strong, nonatomic) IBOutlet UITextField *otherNameTF;
@property (strong, nonatomic) IBOutlet UIButton *sirBtn;
@property (strong, nonatomic) IBOutlet UIButton *ladyBtn;

@property (strong, nonatomic) IBOutlet UILabel  *totalMoneyLabel;
@property (strong, nonatomic) IBOutlet UILabel  *totalCountLabel;
@property (strong, nonatomic) IBOutlet UILabel *myPhoneLabel;
@property (strong, nonatomic) IBOutlet UIButton *myPhoneButton;
@property (strong, nonatomic) IBOutlet UIButton *otherPhoneButton;

@property (assign, nonatomic) BOOL orderSuccess;
@property (strong, nonatomic) NSString *orderId;

@property (assign, nonatomic) int totalCount;
@property (assign, nonatomic) float totalMoney;
@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSMutableArray *selectedDishList;
@property (strong, nonatomic) NSDictionary *packageEntity;
@property (strong, nonatomic) ComfirmOrderNoSeatDataSource *dataSource;

- (id)initWithShopId:(NSString*)shopId;

@end


@interface ComfirmOrderNoSeatDataSource : BaseDataSource

@property (strong, nonatomic) ComfirmOrderNoSeatViewController *viewController;

- (void)submitOrderWithURL:(NSString*)url;

@end